#!/usr/bin/env bash
# vim: fdm=marker fmr=[[[,]]] cms=\ #%s

sn_call()
{ #[[[
    local addr=$1
    local host=$(echo $addr | cut -d":" -f1)
    local port=$(echo $addr | cut -d":" -f2)
    if [[ -z $host || -z $port ]]; then return 1; fi
    shift

    local msg=$(para_put_item '' "$@")
    msg=$(wrap_size "$msg")
    local respond=$(echo $msg | nc $host $port)
    if [[ -z $respond ]]; then return 1; fi
    respond=$(unwrap_size "$respond")
    if [[ -z $respond ]]; then return 1; fi
    echo "$respond"
} #]]]
